<HTML>
<script>
function aa() {
  var  bubble=document.createElement("div");
  bubble.innerHTML=document.body.innerHTML;
  document.body.appendChild(bubble);
}
window.addEventListener('load',aa);
</script>
<body>
1231231
<a href="www.ya.ru">a123</a>
</body>
</HTML>